<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <title>查看角色</title>
    <script th:replace="common/head::static"></script>
</head>
<body>
<form class="layui-form" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">角色名</label>
        <div class="layui-input-inline">
            <input type="text" name="name" th:value="${sysRole.name}" th:disabled="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否可用</label>
        <div class="layui-input-inline">
            <select name="valid" th:disabled="true">
                <option value="Y" th:selected="${#strings.equals(sysRole.valid, 'Y')}">是</option>
                <option value="N" th:selected="${#strings.equals(sysRole.valid, 'N')}">否</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色描述</label>
        <div class="layui-input-inline">
            <input type="text" name="remark" th:value="${sysRole.remark}" th:disabled="true" class="layui-input">
        </div>
    </div>
</form>
<script>
    layui.use(['form'], function () {
        const form = layui.form;
        form.render();
    });
</script>
</body>
</html>